/*
 * @Author: 张小平
 * @Date:   2025-05-01
 * @Email:  qqshuqian@163.com
 * @Copyright © 2024 aseyun. All rights reserved.
 */
import request from '@/framework-core/axios';
import website  from '@/framework-core/config/website';

export function resetPassword(id){
  return request({
    url:website.baseUrl+'/api/sys/user/psw/reset?id='+id,
    method:'post'
  });
}

export function tempPassword(id){
  return request({
    url:website.baseUrl+'/api/sys/user/tempPwd?id='+id,
    method:'post'
  });
}


export function updatePassword(password,newPassword) {
  return request({
    url: website.baseUrl + '/api/sys/user/psw/update',
    data: {"password": password, "newPassword": newPassword},
    method: 'post'
  });
}

export function showOrgRole(id){
  return request({
    url:website.baseUrl+'/api/sys/user/showOrgRole?id='+id,
    method:'post'
  });
}


export function setOrgRole(userId,userOrgSel,userEditRoleSel){
  return request({
    url:website.baseUrl+'/api/sys/user/setOrg2',
    data: {"id":userId,"userOrgSel":userOrgSel,"userEditRoleSel":userEditRoleSel},
    method:'post'
  });
}

export function setOrgRole3(data){
  return request({
    url:website.baseUrl+'/api/sys/user/setOrg3',
    data: data,
    method:'post'
  });
}

export function delOrgRole(id){
  return request({
    url:website.baseUrl+'/api/sys/user/delOrg?id='+id,
    method:'post'
  });
}
